import {post,get, request} from "@/utils/http/httpUtil";

export const modify = (params) => post('/crud/modify', params);
export const save = (params) => post('/crud/save', params);
export const batchSave = (params, timeout) => request({
    url: '/crud/batchSave',
    method: 'post',
    data: params,
    timeout: timeout
}, false, false)
export const remove = (params) => post('/crud/delete', params);

export const batchRemove = (params) => post('/crud/batchDelete', params);
export const query = (params) => post('/crud/query', params, false, false)
export const getRender = (params) => get('/formDesigner/getOne', params, undefined, true)

export const queryReq = (params, timeout) => request({
    url: '/crud/query',
    method: 'post',
    data: params,
    timeout: timeout
}, false, false)
